package world.snowcrystal.snowcrystalinterface.aop;

import jakarta.servlet.http.HttpServletRequest;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import world.snowcrystal.commons.model.enums.SnowcrystalHeaders;

@Aspect
@Component
public class CheckColorizationAspect {
    private HttpServletRequest request;

    @Autowired
    public CheckColorizationAspect(HttpServletRequest request) {
        this.request = request;
    }

    public CheckColorizationAspect() {
    }

    @Before("@annotation(world.snowcrystal.snowcrystalinterface.annotation.CheckColorization)")
    public void check() {
        String colorHash = request.getHeader(SnowcrystalHeaders.COLORIZE_HEADER.value());
        String requestId = request.getRequestId();

    }


}
